<?php
/**
 * Nordic Repository
 * 
 * LICENSE
 * 
 * The new BSD license is applied on this source-file. For further
 * information please visit http://license.nordic-dev.de/newbsd.txt
 * or send an email to andre.moelle@gmail.com.
 */

/**
 * This schema-class is used for encoding and decoding serialized
 * data.
 * 
 * @category   Nordic
 * @package    Nordic_Schema
 * @copyright  2007 Nordic Development
 * @license    http://license.nordic-dev.de/newbsd.txt (New-BSD license)
 * @author     Andre Moelle <andre.moelle@gmail.com>
 * @version    $Id: Ser.php 3 2007-07-08 09:21:42Z andre.moelle $
 */
class Nordic_Schema_Ser implements Nordic_Schema_Interface
{
	/**
	 * @see Nordic_Schema_Interface::decode()
	 */
	public function decode ($array)
	{
		return serialize($array);
	}
	
	/**
	 * @see Nordic_Schema_Interface::encode()
	 */
	public function encode ($string)
	{
		return unserialize($string);
	}
}
?>